//
//  DictionaryValue.swift
//  Network
//
//  Created by peiw on 2018/7/5.
//  Copyright © 2018年 Hiersun. All rights reserved.
//

import Foundation

//public protocol DictionaryValue {
//    var value: Any { get }
//}
//extension Int: DictionaryValue { public var value: Any { return self } }
//extension Float: DictionaryValue { public var value: Any { return self } }
//extension String: DictionaryValue { public var value: Any { return self } }
//extension Bool: DictionaryValue { public var value: Any { return self } }
//extension NSNull: DictionaryValue { public var value: Any { return self } }
//
//extension Array: DictionaryValue where Element: DictionaryValue { public var value: Any { return map { $0.value } } }
//extension Dictionary: DictionaryValue where Value: DictionaryValue { public var value: Any { return mapValues { $0.value } } }

